<?php

/**
 * Class signaturelog(使用签章记录)
 * Notes:
 * Author lv
 * Email 578530370@qq.com
 * Date 2020/8/4 9:11
 */
class signaturelogClassModel extends Model
{
    public function initModel()
    {
        $this->settable('zbcg_signature_log');
    }

    public function add($seal, $sealOwner, $docId, $docName)
    {
        $param = array(
            'seal_name' => $seal,
            'seal_owner' => $sealOwner,
            'doc_name' => $docName,
            'doc_id' => $docId,
            'ip' => $this->rock->ip,
            'create_time' => date('Y-m-d H:i:s')
        );
        return $this->insert($param);
    }
}